Add helper function to get robot series - #488
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #488 +/- ##
==========================================
- Coverage 76.89% 76.74% -0.15%
==========================================
Files 113 113
Lines 6021 6043 +22
Branches 2628 2637 +9
==========================================
+ Hits 4630 4638 +8
- Misses 1055 1065 +10
- Partials 336 340 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
urrsk
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As discussed in UniversalRobots/Universal_Robots_ROS2_Driver#842 it might be useful to compare a robot model with the connected robot for verification purposes.
Since at least for the UR3, UR5 and UR10 there are two models respectively (CB3 and e-series), so we would need to be able to distinguish between them. To do that, this PR adds a
getRobotSeries()function to the primary client and arobotSeriesFromTypeAndVersion()function to deduce the series from the robot model and software version (as the series isn't directly available to my knowledge).I decided to return
UNDEFINEDfor combinations that shouldn't show up in the real world (e.g. a CB3 software version on a UR16 or any UR-Series robot).This is meant to complement UniversalRobots/Universal_Robots_ROS2_Driver#1771 as the series functionality should live in the client library rather than the driver.